import request from "@/utils/request.js";
//获取代理商信息
export function getAgentInformation(uid) {
	return request.get('xing/agentInformation/getById/' + uid);
}
//获取代理商门店信息
export function getTurnover(uid) {
	return request.get('xing/agentInformation/getTurnover/' + uid);
}
//获取代理商门店列表
export function getAgentStoreList(data) {
	return request.get('xing/agentInformation/getAgentStoreList',data);
}
//获取门店信息
export function getStoreInfo(id) {
	return request.get('store/store/' + id);
}
//统计门店营业额
export function getStatistics(storeId) {
	return request.get('store/store/statistics/' + storeId);
}

// 核销
export function getHxCode(data) {
	return request.post('goods/hxCode', data);
}

// 核销记录
export function getUserConsume(data) {
	return request.post('consume/getUserConsumeList', data);
}

// 门店会员列表
export function getUserList(data) {
	return request.post('user/getPage', data);
}

// 预约管理
export function getAppointment(data) {
	return request.post('appointment/appointment/list', data);
}

// 修改预约状态
export function postAppointment(data) {
	return request.post('appointment/appointment/updateById', data);
}

// 订单管理
export function getStorePage(data) {
	return request.post('recharge/order/getPage_store', data);
}

// 免排队管理
export function getQueueFree(data) {
	return request.post('queueFree/getPage', data);
}
// 自动分账
export function getMerchant() {
	return request.get('store/store/merchant_balance_information');
}